package com.mjfeed;

import java.io.Serializable;
/**
 * @description 身份信息
 * @author zhaominglei
 * @date 2014年10月4日
 */
public class Principal implements Serializable{
	private static final long serialVersionUID = -1459083378853195604L;

	/** ID */
	private Long id;

	/** 用户名 */
	private String username;

	public Principal(Long id, String username) {
		this.id = id;
		this.username = username;
	}
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	@Override
	public String toString() {
		return username;
	}
}
